package com.library.domain;


import com.library.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 签到礼品表 mb_gift
 *
 * @author null
 * @date 2020-04-23
 */
public class MbGift extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Integer id;
    /**
     * 礼品编号
     */
    private Integer giftNo;
    /**
     * 礼品名称
     */
    private String giftName;
    /**
     * 剩余数量
     */
    private Integer stockNum;
    /**
     * 未兑换数量
     */
    private Integer noConvertNum;
    /**
     * 兑换数量
     */
    private Integer convertNum;
    /**
     * 缩略图
     */
    private String simpleImageUrl;
    /**
     * 详情图
     */
    private String detailsImageUrl;
    /**
     * 状态
     */
    private String giftStatus;
    /**
     * 操作时间
     */
    private Date createTime;
    /**
     * 备注
     */
    private String remark;
    /**
     * 扩展字段
     */
    private String ext;

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setGiftNo(Integer giftNo) {
        this.giftNo = giftNo;
    }

    public Integer getGiftNo() {
        return giftNo;
    }

    public void setGiftName(String giftName) {
        this.giftName = giftName;
    }

    public String getGiftName() {
        return giftName;
    }

    public void setStockNum(Integer stockNum) {
        this.stockNum = stockNum;
    }

    public Integer getStockNum() {
        return stockNum;
    }

    public void setNoConvertNum(Integer noConvertNum) {
        this.noConvertNum = noConvertNum;
    }

    public Integer getNoConvertNum() {
        return noConvertNum;
    }

    public void setConvertNum(Integer convertNum) {
        this.convertNum = convertNum;
    }

    public Integer getConvertNum() {
        return convertNum;
    }

    public void setSimpleImageUrl(String simpleImageUrl) {
        this.simpleImageUrl = simpleImageUrl;
    }

    public String getSimpleImageUrl() {
        return simpleImageUrl;
    }

    public void setDetailsImageUrl(String detailsImageUrl) {
        this.detailsImageUrl = detailsImageUrl;
    }

    public String getDetailsImageUrl() {
        return detailsImageUrl;
    }

    public void setGiftStatus(String giftStatus) {
        this.giftStatus = giftStatus;
    }

    public String getGiftStatus() {
        return giftStatus;
    }

    @Override
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public Date getCreateTime() {
        return createTime;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public String getExt() {
        return ext;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("giftNo", getGiftNo())
                .append("giftName", getGiftName())
                .append("stockNum", getStockNum())
                .append("noConvertNum", getNoConvertNum())
                .append("convertNum", getConvertNum())
                .append("simpleImageUrl", getSimpleImageUrl())
                .append("detailsImageUrl", getDetailsImageUrl())
                .append("giftStatus", getGiftStatus())
                .append("createTime", getCreateTime())
                .append("remark", getRemark())
                .append("ext", getExt())
                .toString();
    }
}
